export const getWeekDateRange = (r8) => {
    let s8 = new Date(r8);
    const t8 = (s8.getDay() + 6) % 7;
    const u8 = new Date(s8.getFullYear(), s8.getMonth(), s8.getDate() - t8);
    const v8 = new Date(u8.getFullYear(), u8.getMonth(), u8.getDate() + 6);
    const w8 = u8.getFullYear();
    const x8 = u8.getMonth() + 1;
    const y8 = u8.getDate();
    const z8 = v8.getFullYear();
    const a9 = v8.getMonth() + 1;
    const b9 = v8.getDate();
    const c9 = `${w8}-${x8}-${y8}`;
    const d9 = `${z8}-${a9}-${b9}`;
    return getDateRange(c9, d9);
};
export const getDateRange = (g8, h8) => {
    const i8 = [];
    for (let p8 = 0; p8 < 7; p8++) {
        const q8 = new Date(g8);
        q8.setDate(q8.getDate() + p8);
        i8.push(q8);
    }
    const j8 = i8.map((l8) => {
        const m8 = l8.getFullYear();
        const n8 = String(l8.getMonth() + 1).padStart(2, "0");
        const o8 = String(l8.getDate()).padStart(2, "0");
        return `${n8}-${o8}`;
    });
    return j8;
};
